package com.ruoyi.pg.answerSheet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.pg.answerSheet.domain.PgAnswer;
import com.ruoyi.pg.answerSheet.vo.PgAnswerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 答卷详情Mapper接口
 *
 * @author Ming
 * @date 2025-08-22
 */
public interface PgAnswerMapper extends BaseMapper<PgAnswer> {

    Page<PgAnswerVo> queryList(Page<?> page, @Param("entity") PgAnswerVo entity);

    List<PgAnswerVo> queryList(@Param("entity") PgAnswerVo entity);

    PgAnswerVo queryById(@Param("id") Long id);

    /**
     * 查询最新的评估编号信息
     *
     * @param questionId
     * @return
     */
    String queryContent(@Param("questionId") Long questionId);

    PgAnswerVo queryScore(@Param("assId") Long assId);
}
